<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
	<css file="__STATIC__/hdjs/hdjs.css"/>
	<js file="__STATIC__/hdjs/hdjs.min.js"/>
</head>
<body>
	
	<div class="hd-menu-list">
	    <ul>
	        <li class="active"><a href="#">栏目列表</a></li>
	        <li><a href="{|U:'Category/add'}">添加栏目</a></li>

	        <li><a href="#">更新栏目缓存</a></li>
	    </ul>
	</div>

	<table class="hd-table hd-table-list">
	    <thead>
	    <tr>
	    	<td>排序</td>
	        <td>CID</td>
	        <td>栏目名</td>
	        <td>PID</td>
	        <td>显示</td>
	        <td>目录静态</td>
	        <td>列表静态</td>
	        <td>文章静态</td>
	        <td>描述</td>
	        <td>关键词</td>
	        <td>操作</td>
	    </tr>
	    </thead>
	    <tbody>
	    <foreach from="$category" key="$k" value="$c">
		    <tr>
		    	<td>{$c['sort']}</td>
		        <td>{$c['cid']}</td>
		        <td>{$c['_name']}</td>
		        <td>{$c['pid']}</td>
		        <td>{$c['is_show']}</td>
		        <td>{$c['htmldir']}</td>
		        <td>{$c['is_listhtml']}</td>		       
		        <td>{$c['is_archtml']}</td>	
		        <td>{$c['desc']}</td>	  
		        <td>{$c['keyword']}</td>     
		        <td class="hd-w100">
		            <a href="{|U:'Category/edit',array('cid'=>$c['cid'],'pid'=>$c['pid'])}">修改</a> |
		            <a href="{|U:'Category/add',array('pid'=>$c['cid'])}">添加</a>
		        </td>
		    </tr>
		</foreach>
	    </tbody>
	</table>
</body>
</html>